package com.wcj.demo.service.impl;

import com.wcj.demo.dao.MedicineMapper;
import com.wcj.demo.pojo.Medicine;
import com.wcj.demo.service.MedicineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MedicineServiceImpl implements MedicineService {
    @Autowired
    MedicineMapper mdao;

    @Override
    public List<Medicine> findAllMed() {
        List<Medicine> list=mdao.selectAll();
        return list;
    }
}
